package cn.scw.project.system.domain;

import cn.scw.framework.aspectj.lang.annotation.Excel;
import cn.scw.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 经销商对象 sys_dealer
 *
 * @author api
 * @date 2020-05-20
 */
public class SysDealer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 佣金比例（%） */
    @Excel(name = "佣金比例", readConverterExp = "%=")
    private Double commissionRate;

    /** 价格修改权限 */
    @Excel(name = "价格修改权限")
    private boolean jurisPrice;

    /** 广告修改权限 */
    @Excel(name = "广告修改权限")
    private boolean jurisAdvertising;

    /** 微信提现权限 */
    @Excel(name = "微信提现权限")
    private boolean jurisWithdraw;

    /** 今日佣金 */
    @Excel(name = "今日佣金")
    private double brokerage;

    /** 经销商级别（省，市，区） */
    @Excel(name = "经销商级别", readConverterExp = "省=，市，区")
    private String level;

    /** 位置-省 */
    @Excel(name = "位置-省")
    private String positionProvince;

    /** 位置-市 */
    @Excel(name = "位置-市")
    private String positionCity;

    /** 位置-区 */
    @Excel(name = "位置-区")
    private String positionArea;

    /** 帐号状态（0正常 1停用） */
    private String status;



    /** 父级经销商id */
    @Excel(name = "父级经销商id")
    private Long puserId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public Long getPuserId() {
        return puserId;
    }

    public void setPuserId(Long puserId) {
        this.puserId = puserId;
    }


    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setCommissionRate(Double commissionRate)
    {
        this.commissionRate = commissionRate;
    }

    public Double getCommissionRate()
    {
        return commissionRate;
    }
    public void setJurisPrice(boolean jurisPrice)
    {
        this.jurisPrice = jurisPrice;
    }

    public boolean getJurisPrice()
    {
        return jurisPrice;
    }
    public void setJurisAdvertising(boolean jurisAdvertising)
    {
        this.jurisAdvertising = jurisAdvertising;
    }

    public boolean getJurisAdvertising()
    {
        return jurisAdvertising;
    }
    public void setJurisWithdraw(boolean jurisWithdraw)
    {
        this.jurisWithdraw = jurisWithdraw;
    }

    public boolean getJurisWithdraw()
    {
        return jurisWithdraw;
    }
    public void setBrokerage(double brokerage)
    {
        this.brokerage = brokerage;
    }

    public double getBrokerage()
    {
        return brokerage;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setPositionProvince(String positionProvince)
    {
        this.positionProvince = positionProvince;
    }

    public String getPositionProvince()
    {
        return positionProvince;
    }
    public void setPositionCity(String positionCity)
    {
        this.positionCity = positionCity;
    }

    public String getPositionCity()
    {
        return positionCity;
    }
    public void setPositionArea(String positionArea)
    {
        this.positionArea = positionArea;
    }

    public String getPositionArea()
    {
        return positionArea;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("commissionRate", getCommissionRate())
            .append("jurisPrice", getJurisPrice())
            .append("jurisAdvertising", getJurisAdvertising())
            .append("jurisWithdraw", getJurisWithdraw())
            .append("brokerage", getBrokerage())
            .append("level", getLevel())
            .append("positionProvince", getPositionProvince())
            .append("positionCity", getPositionCity())
            .append("positionArea", getPositionArea())
            .toString();
    }
}
